


//
//  ZDYView.m
//  xb
//
//  Created by 程锦 on 16/3/10.
//  Copyright © 2016年 程锦. All rights reserved.
//

#import "ZDYView.h"

@implementation ZDYView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)awakeFromNib
{
    [super awakeFromNib];
    [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([ZDYView class]) owner:self options:nil];
    
    [self addSubview: self.myView];
    
    NSLog(@"%@ , %@" , NSStringFromCGRect( self.frame ) ,NSStringFromCGRect( self.myView.frame));
    //
//    self.myView.frame = self.bounds;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myView.frame = self.bounds;

}


@end
